<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">

    <h:head>
        <title>JSF-AJAX-Beispiel</title>
        <h:outputStylesheet library="css" name="styles.css"/>
    </h:head>
    <h:body>
        <ui:composition template="WEB-INF/template/master.xhtml">
            <ui:define name="content">
                <h1>JSF-AJAX-Beispiel</h1>
                <h:form>
                    <h:panelGrid columns="3" cellpadding="10">
                        <p:notificationBar position="top" effect="slide" widgetVar="bar" styleClass="top">
                            <h:outputText value="Whenever possible, steal code. [Tom Duff, Bell Labs] " style="color:blue; font-size:36px;" />
                            <h:graphicImage id="image1" value="http://www.smiliesuche.de/smileys/grosse/grosse-big-smilies-0854.gif" width="160" height="75" />
                        </p:notificationBar>  
                        <p:commandButton value="Show" onclick="bar.show()" type="button" />
                        <p:commandButton value="Hide" onclick="bar.hide()" type="button" />
                    </h:panelGrid>
                </h:form>
            </ui:define>
        </ui:composition>
    </h:body>
</html>
